package com.java2404.micro.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java2404.micro.common.entity.Goods;
import com.java2404.micro.common.entity.Merchant;
import com.java2404.micro.common.entity.PageBean;
import com.java2404.micro.common.resp.Result;


/**
 * @author HP
 */
public interface MerchantService extends IService<Merchant> {

    Result login(Merchant merchant);

    Result regist(Merchant merchant);

    PageBean<Merchant> ShowMerchant(Integer pageNum, Integer pageSize);

    void updateMerchant(Merchant merchant);

    void audit(int mid, int mstatus);

    /**
     * 根据id查询商户信息
     * @param mid
     */
    Merchant getById(int mid);
}
